home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Resources / General / ProNET / Developer / include / devices / pronet.h next >
C/C++ Source or Header  |  1997-01-27  |  1KB  |  66 lines

  1. #ifndef DEVICES_PRONET_H
  2. #define DEVICES_PRONET_H 1
  3. /*
  4. **  ProNET
  5. **
  6. **  C include file.
  7. **
  8. **  (C) Copyright 1994-1997 Michael Krause
  9. **                          <rawstyle@blackbox.dame.de>
  10. */
  11.  
  12. #ifndef EXEC_IO_H
  13. #include "exec/io.h"
  14. #endif
  15.  
  16. /* Set this bit in Flags for OpenDevice to enable extensive error messages.
  17. */
  18. #define PNB_ERRORSTRING         0
  19. #define PNF_ERRORSTRING         (1<<PNB_ERRORSTRING)
  20.  
  21. /* These errors can occur after OpenDevice():
  22. */
  23. #define PNDERR_PORTEXISTS       -94
  24. #define PNDERR_DRIVERTROUBLE    -96
  25. #define PNDERR_UNIT_NOT_DEFINED -97
  26.  
  27. /* This error can only occur after CMD_WRITE:
  28. */
  29. #define PNDERR_DESTINATION_GONE -98
  30.  
  31. /* The ProNET IO Request:
  32. */
  33. struct PNRequest {
  34.     struct IORequest pnr_Request;
  35.     APTR pnr_MsgPort;
  36.     UWORD pnr_NetSourcePort;
  37.     UWORD pnr_NetDestPort;
  38.     APTR pnr_Data;
  39.     ULONG pnr_Length;
  40. };
  41.  
  42. /* You can use this in pnr_NetSourcePort:
  43. */
  44. #define PNP_NEXTFREE            -2
  45.  
  46. /*--
  47. ---- Following is data for ProNET driver developers
  48. --*/
  49.  
  50. struct PNDrvData {
  51.    UBYTE ReadSignalBit;
  52.    UBYTE pad0;
  53.    void (*ReadQuery)();
  54.    void (*ReadFlush)();
  55.    void (*Read)();
  56.    void (*Write)();
  57.    void (*Exit)();
  58. };
  59.  
  60. /* Return codes (magic cookies) for the driver's Init routine:
  61. */
  62. #define PNDRVERR_NO_MEMORY  0xffffffff /* no memory */
  63. #define PNDRVERR_WRONG_ARGS 0xfffffffe /* wrong .config arguments */
  64.  
  65. #endif  /* DEVICES_PRONET_H */
  66.